package design.responsibility.demo01;

/**
 * <p>
 * 处理器1
 * </P>
 *
 * @author dingwen
 * @date 2021.10.15 11:01
 */
public class Concrete01Handler extends AbstractHandler{
    @Override
    protected Response response() {
        System.out.println("此请求由处理器1进行处理~");
        return new Response("处理器1处理得到结果~");
    }

    @Override
    protected Level getLevel() {
        return new Level(1);
    }
}
